package com.sunny.cloudfeignconsumer;

import org.springframework.stereotype.Component;

/**
 * feign hystrix
 * 降级服务，实现的接口方法就是对应的降级方法
 *
 * @author Sunny
 * @date 2019/11/12 上午10:43
 */
@Component
public class FeignInterfaceHystrix implements FeignInterface {
    @Override
    public String hiService(String name) {
        return "hi " + name + ", feign hystrix start!";
    }
}
